<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    
    <div class="form-group">
        <label for="c-nickname" class="control-label col-xs-12 col-sm-2">{:__('Nickname')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-nickname" data-rule="required" class="form-control" name="row[nickname]" type="text" value="{$row.nickname|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-mobile" class="control-label col-xs-12 col-sm-2">{:__('Mobile')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-mobile" data-rule="" class="form-control" name="row[mobile]" type="text" value="{$row.mobile|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-avatar" class="control-label col-xs-12 col-sm-2">{:__('Avatar')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-avatar" data-rule="" class="form-control" size="50" name="row[avatar]" type="text" value="{$row.avatar}">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="plupload-avatar" class="btn btn-danger plupload" data-input-id="c-avatar" data-mimetype="image/gif,image/jpeg,image/png,image/jpg,image/bmp" data-multiple="false" data-preview-id="p-avatar"><i class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-avatar" class="btn btn-primary fachoose" data-input-id="c-avatar" data-mimetype="image/*" data-multiple="false"><i class="fa fa-list"></i> {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-avatar"></span>
            </div>
            <ul class="row list-inline plupload-preview" id="p-avatar"></ul>
        </div>
    </div>
    <div class="form-group">
        <label for="c-is_broker" class="control-label col-xs-12 col-sm-2">{:__('is_broker')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[extension][is_broker]', ['0'=>__('Is_broker 0'), '1'=>__('Is_broker 1'), '2'=>__('Is_broker 2')], $row['is_broker'])}
        </div>
    </div>
    <div class="form-group">
        <label for="c-user_type" class="control-label col-xs-12 col-sm-2">{:__('user_type')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[extension][user_type]', ['0'=>__('user_type 0'), '1'=>__('user_type 1'), '2'=>__('user_type 2'),'3'=>__('user_type 3')], $row['user_type'])}
        </div>
    </div>
    <div class="form-group">
        <label for="c-gender" class="control-label col-xs-12 col-sm-2">{:__('Gender')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[gender]', ['1'=>__('Male'), '2'=>__('Female')], $row['gender'])}
        </div>
    </div>
    <div class="form-group">
        <label for="c-tags" class="control-label col-xs-12 col-sm-2">{:__('tags')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-tags" data-rule="" class="form-control" name="row[extension][tags]" type="text" value="{$row.tags|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-college" class="control-label col-xs-12 col-sm-2">{:__('college')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-college" data-rule="" class="form-control" name="row[extension][college]" type="text" value="{$row.college|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">省市:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="form-inline" data-toggle="cxselect" data-selects="prov,city">
                <select class="prov form-control" data-rule="required" name="row[extension][prov]" data-url="xiluhouse/ajax/area">
                    <option value="{$row.prov}" selected="">{$row.prov}</option>
                </select>
                <select class="city form-control" data-rule="required" name="row[extension][city]" data-query-name="prov" data-url="xiluhouse/ajax/area">
                    <option value="{$row.city}" selected="">{$row.city}</option>
                </select>
            </div>
        </div>
    </div>
    <div class="form-group">
        <label for="c-bio" class="control-label col-xs-12 col-sm-2">{:__('Bio')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-bio" data-rule="" class="form-control" name="row[bio]" type="text" value="{$row.bio|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-service_num" class="control-label col-xs-12 col-sm-2">{:__('service_num')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-service_num" data-rule="required" class="form-control" name="row[extension][service_num]" type="number" value="{$row.service_num}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-take_look_num" class="control-label col-xs-12 col-sm-2">{:__('take_look_num')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-take_look_num" data-rule="required" class="form-control" name="row[extension][take_look_num]" type="number" value="{$row.take_look_num}">
        </div>
    </div>
    <div class="form-group">
        <label for="c-satisfaction_degree" class="control-label col-xs-12 col-sm-2">{:__('satisfaction_degree')}:</label>
        <div class="col-xs-12 col-sm-4">
            <input id="c-satisfaction_degree" data-rule="required" class="form-control" name="row[extension][satisfaction_degree]" type="number" value="{$row.satisfaction_degree}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Weigh')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-weigh" class="form-control" name="row[extension][weigh]" type="number" value="{$row.weigh|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label for="content" class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[status]', ['normal'=>__('Normal'), 'hidden'=>__('Hidden')], $row['status'])}
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
